﻿namespace Medicalsystem.MCP.FormDesigner.Common
{
    #region DotType

    /// <summary>
    /// 捏手类型-捏手位置
    /// </summary>
    public enum DotType
    {
        /// <summary>
        /// 西北方向
        /// </summary>
        WestNorth = 0,

        /// <summary>
        /// 北方向
        /// </summary>
        North = 1,

        /// <summary>
        /// 东北方向
        /// </summary>
        EastNorth = 2,

        /// <summary>
        /// 东方向
        /// </summary>
        East = 3,

        /// <summary>
        /// 东南方向
        /// </summary>
        EastSouth = 4,

        /// <summary>
        /// 南方向
        /// </summary>
        South = 5,

        /// <summary>
        /// 西南方向
        /// </summary>
        WestSouth = 6,

        /// <summary>
        /// 西方向
        /// </summary>
        West = 7
    }

    #endregion DotType

    #region MessageType

    /// <summary>
    /// 消息发送类型
    /// </summary>
    public enum MessageType
    {
        /// <summary>
        /// 创建控件
        /// </summary>
        CreateControl,

        /// <summary>
        /// 控件焦点
        /// </summary>
        ControlFocus,

        /// <summary>
        /// 模板焦点
        /// </summary>
        ModelFocus,

        /// <summary>
        /// 键盘事件
        /// </summary>
        KeyEvent
    }

    #endregion MessageType

    #region EDesignModeState

    /// <summary>
    /// 控件的呈现方式
    /// </summary>
    public enum EDesignModeState
    {
        /// <summary>
        /// 设计状态
        /// </summary>
        Design = 1,

        /// <summary>
        /// 运行状态
        /// </summary>
        Run = 2,

        ///预览
        PreView = 3
    }

    #endregion EDesignModeState

    #region EBorderStyle

    /// <summary>
    /// 边框
    /// </summary>
    public enum EBorderStyle
    {
        /// <summary>
        /// 无边框
        /// </summary>
        None = 0,

        /// <summary>
        /// 单行边框
        /// </summary>
        FixedSingle = 1,

        /// <summary>
        /// 三维边框。
        /// </summary>
        Fixed3D = 2,

        /// <summary>
        /// 下划线
        /// </summary>
        UnderLine = 3
    }

    #endregion EBorderStyle

    #region EUISizeMode

    /// <summary>
    /// 设计时对控件的控制模式
    /// </summary>
    public enum EUISizeMode
    {
        /// <summary>
        ///
        /// </summary>
        Null = 0,

        /// <summary>
        /// 不能改变Size
        /// </summary>
        AllowNone = 1,

        /// <summary>
        /// 只能改变宽度
        /// </summary>
        AllowWidth = 2,

        /// <summary>
        /// 都可以改变
        /// </summary>
        AllowBoth = 8
    }

    #endregion EUISizeMode

    #region EErrorType

    /// <summary>
    /// 错误类型
    /// </summary>
    public enum EErrorType
    {
        /// <summary>
        /// 无错误
        /// </summary>
        None = 0,

        /// <summary>
        /// 异常
        /// </summary>
        Exception = 1,

        /// <summary>
        /// 提示性文本
        /// </summary>
        Information = 2,

        /// <summary>
        /// 警告性文本
        /// </summary>
        Warning = 3,

        /// <summary>
        /// 登录信息验证失败
        /// </summary>
        SIDValidateFailed = 4
    }

    #endregion EErrorType
}